package com.jiefutong.zyt.apiservice;



import com.jiefutong.zyt.bean.GoodsCollectVO;
import com.jiefutong.zyt.bean.GoodsDetailVO;
import com.jiefutong.zyt.bean.MainVO;
import com.jiefutong.zyt.bean.MineVO;
import com.jiefutong.zyt.bean.NewUserVO;
import com.jiefutong.zyt.bean.UserInfoVO;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;

/**
 * Created by admin on 2017/2/16.
 */
public interface ApiService {
    //注册接口


    //个人信息
    @GET("api/index/api/v1/user")
    Call<UserInfoVO> getUserInfo();

    //个人中心界面
    @GET("api/index/api/my")
    Call<MineVO> getMineFragment();
    //首页界面
    @GET("api/index/api/home")
    Call<MainVO> getMainInfo();


    //新人红包
    @GET("/api/index/api/newpeople")
    Call<NewUserVO> getNewInfo();


    //商品详情
    @POST("api/item/detail")
    @FormUrlEncoded
    Call<GoodsDetailVO> getGoodsDetail(@FieldMap Map<String, Object> names);

    //商品收藏
    @POST("api/user.favorites/add")
    @FormUrlEncoded
    Call<GoodsCollectVO> goodsCollect(@FieldMap Map<String, Object> names);

   /* @POST("api/register")
    @FormUrlEncoded
    Call<MineVO> register(@FieldMap Map<String, Object> names);*/






}
